#ifndef AUTODETECTPARAMETERS_H
#define AUTODETECTPARAMETERS_H
#include <QString>
#include <QGeoPositionInfo>
#include <QGeoPositionInfoSource>

QTM_USE_NAMESPACE

#include <QPointer>

class AutoDetectParameters : public QObject
{
    Q_OBJECT
public:
        static AutoDetectParameters* Instance();


        double m_dLat, m_dLon;
        QString m_strConnectionSpeed;
        QString m_strDeviceID;
        QString m_ua;

private:
        void GetSystemInfo();
        void getGpsCoordinates();
        QPointer<QGeoPositionInfoSource> positionSource;
        QGeoPositionInfo myPositionInfo;
        AutoDetectParameters();
        static AutoDetectParameters* instance;
signals:
        void onCreate();
private slots:
        void updateMyPosition(QGeoPositionInfo info);
        void updateUA();


};

#endif // AUTODETECTPARAMETERS_H
